package cn.hackcloud.annotation.test;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import cn.hackcloud.annotation.tx.TxConfig;
import cn.hackcloud.annotation.tx.UserService;

public class IOCTestTx extends BaseTest {
	AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(TxConfig.class);

	@Test
	public void test() {
		System.out.println("容器创建完成...");
		UserService userService = ctx.getBean(UserService.class);
		userService.insert();
	}

}
